package com.htu.courseService.websocket.system.factory;
import com.htu.courseService.websocket.facotry.AppFactory;
import com.htu.courseService.websocket.facotry.CommonAppHandler;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * Created By JNNarrator on 2024/9/22 00:53
 * email: jiangn09@chinatelecom.cn
 */
@Component("system")
@RequiredArgsConstructor
public class SystemFactory implements AppFactory {
	private final Map<String, CommonAppHandler> handlerMap;
	@Override
	public CommonAppHandler getHandler(String operation)
	{
		return handlerMap.get(operation);
	}
}
